package string;

public class StringDemo {
    public static void main(String[] args) {
        String s1 = "123abc";
        String s2 = "123abc";
        String s3 = "123";
        String s4 = new String("123abc");
        String s5 = s3+"abc";
        String s6 = "123"+"abc";
        System.out.println(s4==s5);
        System.out.println(s1.equals(s6));

    }
}
